package com.haibara.codesubmiteval.model.dto.user;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: mengyu
 * @Date: 2025/2/1
 */
@Data
public class UserChangePasswordRequest implements Serializable {
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;
    @NotBlank(message = "新密码不能为空")
    private String newPassword;
    @NotBlank(message = "确认密码不能为空")
    private String ensurePassword;

    @Serial
    private static final long serialVersionUID = 1L;
}
